package sk.openit.java.io;

import java.io.*;

public class ConsoleRead {

	private static String inputString() {
		BufferedReader bufferedreader = new BufferedReader(
				new InputStreamReader(System.in));
		String s = null;
		try {
			s = bufferedreader.readLine();
		} catch (IOException ioexception) {
			ioexception.printStackTrace();
		}
		return s;
	}

	public static void main(String args[]) {
		try {
			System.out.println(" Nacitanie vstupu z CMD ");
			System.out.print(" Zadaj riadok : ");
			String s = inputString();
			System.out.println("Vypis: " + s);
		} catch (Exception exception) {
			exception.printStackTrace();
		}
	}
}
